import request from "../utils/request";

// 查看的实验室无分页
export const laboratoryList = data => {
    return request({
        method: 'POST',
        url: '/laboratory/findLaboratoryList',
        data
    })
}
//学生查看公告
export const studentNotice = data => {
    return request({
        method: 'POST',
        url: '/notice/studentNoticePage',
        data
    })
}
//教师查看公告
export const adminNotice = data => {
    return request({
        method: 'POST',
        url: '/notice/theaterNoticePage',
        data
    })
}
//创建公告
export const addNotice = data => {
    return request({
        method: 'POST',
        url: '/notice/addNotice',
        data
    })
}
//编辑公告
export const editNotice = data => {
    return request({
        method: 'POST',
        url: '/notice/editNotice',
        data
    })
}
//删除公告
export const deleteNotice = id => {
    return request({
        method: 'GET',
        url: '/notice/deleteNotice?id=' + id
    })
}
